<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
	<div class="main-title">
		<h2>{:isset($info['id'])?'编辑':'新增'}明星信息</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li data-tab="tab1" class="current"><a href="javascript:void(0);">基 础</a></li>
		</ul>
		<div class="tab-content">
			<form action="{:U(update)}" method="post" class="form-horizontal" enctype="multipart/form-data">
				<!-- 基础 -->
					<div class="form-item">
						<label class="item-label">图片标题</label>
						<div class="controls">
							<input type="text" class="text input-large" name="title" value="{$info['title']}">
						</div>
					</div>
					<div class="form-item">
						<label class="item-label">上传图片文件</label>
						<div class="controls">
							<input type="file" class="text input-large" name="image" value="">
							<input type="text" class="hidden" name="url" value="{$info['url']}">
						</div>
					</div>
					<notempty name="info['url']">
						<div class="form-item">
							<label class="item-label">浏览</label>
							<div  class="controls">
								<img src="__ROOT__/Uploads{$info['url']}">
							</div>
						</div>
					</notempty>
				<div class="form-item">
					<label class="item-label">详细内容</label>
					<div class="controls">
						<textarea class="text input-large" name="detail">{$info['detail']}</textarea>
						{:hook('adminArticleEdit', array('name'=>detail,'value'=>detail))}
					</div>
				</div>

				<div class="form-item">
					<label class="item-label">选择分类</label>
					<div class="controls">
						<present name="info['mark']">
							<label class="radio"><input type="radio" name="mark" value="0" <eq name="info['mark']" value="0">checked="checked"</eq>>明星资料</label>
							<label class="radio"><input type="radio" name="mark" value="1" <eq name="info['mark']" value="1">checked="checked"</eq>>明星动态</label>
							<else />
							<label class="radio"><input type="radio" name="mark" value="0" checked="checked">明星资料</label>
							<label class="radio"><input type="radio" name="mark" value="1" >明星动态</label>
						</present>
					</div>
				</div>

					<div class="form-item">
						<label class="item-label">是否展示</label>
						<div class="controls">
							<present name="info['status']">
								<label class="radio"><input type="radio" name="status" value="1" <eq name="info['status']" value="1">checked="checked"</eq>>是</label>
								<label class="radio"><input type="radio" name="status" value="0" <eq name="info['status']" value="0">checked="checked"</eq>>否</label>
								<else />
								<label class="radio"><input type="radio" name="status" value="1" >是</label>
								<label class="radio"><input type="radio" name="status" value="0" checked="checked">否</label>
							</present>
							</div>
					</div>

				<div class="form-item">
					<input type="hidden" name="id" value="{$info['id']|default=''}">
					<button type="submit" id="submit" class="btn submit-btn" target-form="form-horizontal">确 定</button>
					<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</form>
		</div>
	</div>
</block>

